package com.meihuak.cloud_ordering.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 评论表(一级评论)
 * @author 韩迪
 *
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostTable {
    @TableId(type = IdType.AUTO)private Long id;//帖子id
    private String title;//标题
    private String content;//内容
    private Integer userId;//发帖人id
    private Integer likeCount;//点赞数
    private Integer readCount;//阅读量
    private Integer commentCount;//评论数
    private String ptype;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createDate;//评论日期


}
